package com.picture.pojo.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
@ApiModel("图片标记坐标实体类")
public class PictureTagVo {
    @ApiModelProperty("图片标记坐标id")
    private Long pictureTagId;
    @ApiModelProperty("图片id")
    private Long pictureId;
    @ApiModelProperty("图片标记类型id")
    private Long tagTypeId;
    @ApiModelProperty("标记左上角的x坐标")
    private String x1;
    @ApiModelProperty("标记左上角的y坐标")
    private String y1;
    @ApiModelProperty("标记右下角的x坐标")
    private String x2;
    @ApiModelProperty("标记右下角的y坐标")
    private String y2;
    @ApiModelProperty("标记颜色")
    private String color;

    @ApiModelProperty("图片状态")
    private String status;

    // 无参构造方法
    public PictureTagVo() {
    }

    /**
     * 有参构造方法
     * @param pictureId 图片id
     * @param typeId 图片标记类型id
     * @param x1 标记左上角的x坐标
     * @param y1 标记左上角的y坐标
     * @param x2 标记右下角的x坐标
     * @param y2 标记右下角的y坐标
     */
    public PictureTagVo(Long pictureId, Long tagTypeId, String x1, String y1, String x2, String y2, String color) {
        this.pictureId = pictureId;
        this.tagTypeId = tagTypeId;
        this.x1 = x1;
        this.y1 = y1;
        this.x2 = x2;
        this.y2 = y2;
        this.color = color;
    }
}
